﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleCasino
{
    public class MenuChanger : MenuItem
    {
        // Attaches event to MenuChanger. GameManager subscibes to that event. When Perform() is called, GameManager changes the menu using the name to recognise it.
        public event ChangeMenuEvent Change;
        public override void Perform()
        {
            Change(this.Name);
        }
        public MenuChanger(string name, Style style) : base(name, style) 
        {
 
        }
    }
}
